let a = 100
let b = 120
let res = a + b
let fun = () => {
    console.log("箭头函数")
}
fun()
const fs = require("fs");
fs.readFile("C://install.log", "utf-8", (err, data) => {
        if (err) {
            console.log(err)
            return
        }
    })
    // let data = fs.readFileSync("./day12_node.js", "utf-8")
    // console.log(data)
const path = require("path")
console.log(path.sep)
let data = fs.readFileSync("C:" + path.sep + "install.log", "utf-8")
console.log(data)
path.join("C:", "install.log")
console.log(p)

let p = path.join("C:", "install.log")
console.log(p)

let p1 = path.join("src", "aa.js")
console.log(p1)

let p2 = path.resolve("/aaa", "install.log")
console.log(p2)

let p3 = path.resolve("4node", "demo.js")
console.log(p3)
console.log(path.basename(p2))
console.log(path.basename(p2, ".log"))
console.log(path.dirname(p2))
console.log(path.extname(p2))

let res1 = path.parse('C:\Users\Administrator\Desktop\day02\jsdemo\aaa\install.log')
console.log(res1)
console.log(__name)
console.log(__filename)